
let userModel = require("../models/userModel")


module.exports={
   /**
    * 登录
    * @param {*} param0 用户名和密码
    */ 
   async getUserByUsernameAndPwd({username,pwd}){ 
      return await userModel.findOne({username,pwd}).exec();
   }
}